package org.jypj.dev.vo;

import com.google.gson.Gson;

/**
 * 查询用户个人上传记录的tree
 *
 * @author ChenYu
 */
public class UserWorkTree {

    private String id;// 树形的ID
    private String name;// 树的名称
    private String parentId;// 父id
    private String workId; // 实际的工序id
    private String workName;// 实际的工序名称
    private String workType;// 实际的工序类型
    private int isCatalog;// 是功能还是目录
    private int workStatus;// 是否完成

    public UserWorkTree() {
    }

    public UserWorkTree(String id, String name, String parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public int getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(int workStatus) {
        this.workStatus = workStatus;
    }

    public int getIsCatalog() {
        return isCatalog;
    }

    public void setIsCatalog(int isCatalog) {
        this.isCatalog = isCatalog;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}
